//
//  DetailView.m
//  豆瓣YHY
//
//  Created by dllo on 15/10/31.
//  Copyright © 2015年 蓝鸥科技. All rights reserved.
//

#import "MovieDetailView.h"

@implementation MovieDetailView

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self zz];
    }
    return self;
}
- (void)zz{
   
    //图片
    self.pic_url = [[UIImageView alloc]initWithFrame:CGRectMake(20, 75, 110, 190)];
    //self.pic_url.backgroundColor = [UIColor yellowColor];
    [self addSubview:self.pic_url];
    
    //评分
    self.ratingLabel = [[UILabel alloc]initWithFrame:CGRectMake(160, 80, 100, 30)];
    //self.ratingLabel.backgroundColor = [UIColor yellowColor];
    [self addSubview:self.ratingLabel];
    //上映时间
    self.release_dateLabel = [[UILabel alloc]initWithFrame:CGRectMake(160, 120,100, 30)];
    //self.release_dateLabel.backgroundColor = [UIColor yellowColor];
    [self addSubview:self.release_dateLabel];
    //时间
    self.runtimeLabel = [[UILabel alloc]initWithFrame:CGRectMake(160, 160, 100, 30)];
    //self.runtimeLabel.backgroundColor = [UIColor yellowColor];
    [self addSubview:self.runtimeLabel];
    
    //分类
    self.genresLabel = [[UILabel alloc]initWithFrame:CGRectMake(160, 200, 100, 30)];
    //self.genresLabel.backgroundColor = [UIColor yellowColor];
    [self addSubview:self.genresLabel];
    
    //国家
    self.country = [[UILabel alloc]initWithFrame:CGRectMake(160, 240, 100, 30)];
    //self.country.backgroundColor = [UIColor yellowColor];
    [self addSubview:self.country];
    
    //自作人
    UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(23, 270, 150, 50)];
    label.text = @"制作人";
    label.font = [UIFont fontWithName:@"Arial Rounded MT Bold" size:25.0];
    [self addSubview:label];
    
    //制作人信息
    self.actorsLabel = [[UILabel alloc]initWithFrame:CGRectMake(23, 330, 340, 70)];
    //self.actorsLabel.backgroundColor = [UIColor yellowColor];
    [self addSubview:self.actorsLabel];
    //电影情节
    UILabel *label1 = [[UILabel alloc]initWithFrame:CGRectMake(23, 420, 100 ,50)];
    label1.font = [UIFont fontWithName:@"Arial Rounded MT Bold" size:25.0];
    [self addSubview:label1];
    
    //电影内同
    self.plot_simpleLabel = [[UILabel alloc]initWithFrame:CGRectMake(23, 470, 340, 300)];
    //self.plot_simpleLabel.backgroundColor = [UIColor yellowColor];
    [self addSubview:self.plot_simpleLabel];
}
    


- (void)setMovie:(Movie *)movie
{
    if (_movie != movie) {
        [_movie release];
        _movie = [movie retain];
    }
    
    
    self.country.text = self.movie.country;
    
    
    
    
}








/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
